<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title>成绩计算</title>
    </head>
    <body>
        <?php
         $lang=90;
         $math=80;
         $eng=70;
         $sum=$lang+$math+$eng;
         $avg=$sum/3;
         echo "语文".$lang."分<br/>";
         echo "数学".$math."分<br/>";
         echo "英语".$eng."分<br/>";
         echo "总分".$sum."分<br/>";
         echo "平均分".$avg."分<br/>";
        ?>
    </body>
</html>
